﻿using JX.Core.Entity;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace JXWebSite.Areas.Admin.Models.UserViewModels
{
	/// <summary>
	/// 注册商户视图类
	/// </summary>
	public class RegCompanyViewModel
	{
		/// <summary>
		/// 会员ID
		/// </summary>
		[Required(ErrorMessage = "会员ID不能为空")]
		public int UserID { get; set; } = 0;

		/// <summary>
		/// 已有商户列表
		/// </summary>
		public IList<CompanyEntity> CompanyList { get; set; }

		/// <summary>
		/// 要加入的商户ID
		/// </summary>
		public int AppendCompanyID { get; set; } = 0;

		/// <summary>
		/// 加入后的级别
		/// </summary>
		public int UserType { get; set; } = 2;
	}
}
